package com.itheima.design.mode.strategy.service;

import com.itheima.design.mode.strategy.annotation.HandlerPromotionType;
import com.itheima.design.mode.strategy.entity.Order;
import org.springframework.stereotype.Component;

@Component
@HandlerPromotionType(Order.Promotion4)
public class Promotion4CalculationV5 implements PromotionCalculation {

    @Override
    public Order calulate(Order order) {
        System.out.println("v5 这是促销方法4");
        return order;
    }
}
